﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PluggableModulesInterface;
using StorageManagement;
using PluggableModulesRouter;
using SMSROUTER.StorageManagement;
using Settings;

namespace StaticThreadManagement
{
    public class MOReaderTheadManage : WorkingBase
    {
        protected override int INFINITE_NEXT_TIME
        {
            get
            {
                return AppSetting.ReadDataDuration;
            }
        }
        
        protected override void LoopWorking()
        {
            try
            {
                SmsInWaitingStorage.EnqueuData();
            }
            catch (Exception ex)
            {
                HandleException(ex, AppSetting.WarningType.mo_error);
            }
        }
    }
}
